#include "Signal.h"
int main(){
	const gsl_rng_type *T;
	gsl_rng *r;
	
	gsl_rng_env_setup();
	T = gsl_rng_default;
	r = gsl_rng_alloc(T);
	int i;
	int REPEAT = 100000000;
	time_t start_rand,end_rand;
	time_t start_gsl,end_gsl;

	time(&start_rand);
	// The RandRand() function
	for(i=0;i<REPEAT;i++){
		RandRand();
	}
	time(&end_rand);
	
	time(&start_gsl);
	// The GSL Random number generator
	for(i=0;i<REPEAT;i++){
		gsl_rng_uniform(r);
	}
	time(&end_gsl);

	printf("RandRand() takes %.5f\n",difftime(end_rand,start_rand));
	printf("gsl_rng_uniform() takes %.5f\n", difftime(end_gsl,start_gsl));
	gsl_rng_free(r);
	return 0;
}
	
